#include"Heap.h"

void test1()
{
	Hen heap;
	heap_init(&heap);
	heap_push(&heap, 1);
	heap_push(&heap, 5);
	heap_push(&heap, 2);
	heap_push(&heap, 3);
	heap_push(&heap, 4);

	heap_printf(&heap);

	heap_pop(&heap);
	heap_printf(&heap);

	Hedata_type x = heap_top(&heap);
	printf("top:%d\n", x);
	printf("size:%d\n",heap_size(&heap));
	if (!heap_empty(&heap)) printf("no empty\n");

	heap_destroy(&heap);
}

int main()
{
	test1();
 
	return 0;
}